
from django.urls import path,re_path
from books.view import book,author,views
urlpatterns = [
    re_path(r'^$', book.index),
    re_path(r'^book_list/$', book.book_list, name='book_list'),
    re_path(r'^book_delete/(?P<id>\d+)$', book.book_delete, name='book_delete'),
    re_path(r'^book_update/(?P<id>\d+)$', book.book_update),
    re_path(r'^book_add/$', book.book_add),
    re_path(r'^author_list/$', author.author_list),
    re_path(r'^publish_list/$', author.publish_list),
    re_path(r'^author_delete/$', author.author_delete),
    re_path(r'^author_add/$', author.author_add),
    re_path(r'^author_update/(\d+)$', author.author_update),
    re_path(r'^author_update/', author.author_update, {'id': 1}),
    re_path(r'', views.error),
]
